cwhaticando.com home DIY • Do it Yourself • Weekend Projects • BIG Projects • LITTLE Projects
become a creator share your how-to  

 

 

close window

How Do I Share My How-To?

It's really pretty easy, pictures and videos of the steps it takes to complete your project are stored on YouTube and picasaWeb. Once your "final" video is stored on YouTube, your project will show in the listings on the site. All this is controlled by our Creator's Tools. Basically, you start a project by writing up the project idea.

Step 1. Sign up for a free Creator's Account to gain access to the Creator's Tools.

Step 2. Login

Step 3. Push the "Create New Project" button on the Creator's Tools. Make a name (you can change it later) for your project. And describe your plans to use as notes to guide the creation of the steps.

Step 4. When you've finished providing all the steps to your project, shooting the videos and saving to google video via the Creator's Tool Panel, you are ready to write the introductory paragraph with an interesting story of how you did it, or how you do it in the case of a professional services presentation.

Step 5. Last but not least create and upload the video (to YouTube) which is the video that will be used to summarize the project. If you were building a robot, this final video would show the robot running around, doing fun things that will inspire others to create their version of your project.

That's it... Watch the views and ratings for your project pile up along with the sales commissions! Or get a customer because you showed how you remodel a house.

close window

FAQ About Becoming A Creator

Q. Why would I go to all that work, building something, then put it on a website like C What I Can Do? What's the point?

A. Actually, there are a couple of forms for a reward:

  1. You get rated as an author. Lots of good ratings looks good on your resume.
  2. You Make Money!

YOU Make Money when someone buys a part from You, and builds it into Their Version of your project. And, if YOU have a basement full of red leds and build a red led project - we'll send you customers who are inspired to build your blinking light device. If you sell PC boards, you may link to your own sales. Or sell your own kit online through your e-Bay store.

The same with books! We encourage project builders to make books. In fact, CwhatIcanDo is a great place to get rated as an author. 'Betcha get a better deal from your publisher...

Of course, it is possible that your project won't make you any money, because someone built something even cooler than yours (maybe even inspired by your project.) Maybe you just want to show your version of another project... It's done in the spirit of the web: Sharing ideas. And it's fun building a project on your own.



picAxe 8 bit Motor Controller: Look Inside      ...     32059 Views
Author's name: WeRbots       

The low-cost picAxe Motor Controller allows you to build a universal motor control for Robots.

Just mount the IR detector right on the board. Then you can mount the whole thing on an R/C car or junker robot and wham! You are in business!


You need an 8m picAxe chip in the controller. Most are advertised with an 8m chip, although I have found them with only a picAxe 8 pin chip. There is no interrupt in the 8 pin chip, so you will need the 8m to make this design work.

Why do this? You can have a controller that you can move around. It is cheap and easy to create the universal board by mounting the IR detector directly on the PC board.


Give some examples of alternatives - Like using the TA8080.

Get Software...
Author's Assigned Keywords:    Robot Motor Control    Robots

  (ad)
Why Pay the Money?     
Why not buy your own programmer and a pic Chip directly? Its gonna cost ya. Commercial units cost a bundle, the c-compiler alone is a couple hundred.

Why does an 85 cent chip cost almost 4 bucks? Because you are paying for two things, a profit (means they buy wholesale volumes and mark it up to retail). Plus, theres a lot of R and D money (true), but eventually theyll get cheaper.

Its like buying an old 555 timer. They cost pennies now, but cost a lot more before everyone started building one. We are in a limited demand field (Robotics) so it will take a while for the volume to build up like microprocessors used in common computers.

I use one of these in sort of a pre-built unit with an IR detector strapped on, this way I can add it to any old RC chassis.

This is perfect for "benders", people (like me) who scrounge semi operational bots and RC toys.

It they have a battery controlling motors, I grab them.

Then I simply connect the motors to this combo motor drive and IR, and voila! Instant robot, or r/c vehicle autonomy...
The extras on the board     
These extras make the board easier to use universally. They are the switch I soldered to a 3 pin connector so you can switch between programming and operation. Really handy when you have to tweak the program to accomodate some new wild chassis you find.
Schematic Diagram     
The PC Board uses an L293 H-Bridge attached to four io pins on the picAxe 8 or 8m chips. Mine came with a picAxe 8, I prefer to use the 8m because I use the interrupt to get the driver to react in some way to an interrupt source. The source, Sharp GP2D12 IR Object detector.

I could use bump switches then the interrupt routine could check whether the IR detector, or a "feeler" switch (right or left) was bumped.

But this particular board makes it handy when Im "bending" another r/c model, or just about any other semi-experimental application.
Software     
This is all pretty simple, just pounding pins to drive the bot forward. Then you adjust according to behavior. The rumble bot, when I first fired it up, moved with pretty small steps. So I tweaked the delay times in the software, basically changing the length of time the motors stay on relative to the types of motors in the rumble bot.

When the rumble bot was tamed, I moved the whole assembly over to the Tumbler robot, but things got crazy. So again, I tweaked the delay times and made them a lot shorter. I like the way tumbler bot scoots around objects, so Ill probably mount a controller, probably using a picAxe m14 and start with the same basic program in this listing.

=========================================================================
`-------------------------------------------------------
`
` picAxe Motor Control
` Created by: Jim Huffman
` Rev 0.1 October 18, 2007
` Rev 0.2 October 20, 2007 JH
` Rev 0.3 look around functions begun Oct22, 2007
` Rev 0.4 Changed Motor Drive approach Nov 04, 2007
`
`-------------------------------------------------------
`
` Initialize System Wide Values
`
` Directives
` Select and initialize chipset
#picaxe 08m
`
` System resources
symbol fwdM1 = 0 `(pin 7)(Careful, Used in Programming)
symbol revM1 = 1 `(pin 6)
symbol revM2 = 2 `(pin 5)
symbol IRsense = 3 `(pin 4)(input only on 8 pin)
symbol fwdM2 = 4 `(pin 3)
` (pin 1 Vdd, pin 8 = Vss, pin 2 = Serial In)
`
` Motor Control constants
` assumptions:
` open means no output
` trying not to use external chips, only 3904s (4 outs)
` using a single sensor with dual IR emitters
` motors are M1 and M2 (cheapies from Avoider Robot)
` powered by 3x 1.2v liIon (use button batteries?)
`
` vars
symbol storResult = w2 ` place to put ADC10 results
symbol storResShrt= b4 ` place to put adc results
`
`
`--------------------------------------------------------
` Code Blocks:
`
let dirs = %00010111
` short wait before main routine begins
setint %00001000, %00001000
`
` main demo routine

`It goes like this
` gosub (fwd,rev,leftspin,rightspin)
` pause - long as you want it to do the appropriate subroutine
` gosub stopAll - You have to stop it from driving, don`t forget this
` That`s how you make the world go round
`
init: `gosub fwd `basically, you make it go, then you pause for running time
`obviously, an interrupt loop makes it quit driving anytime
gosub stopAll `don`t forget to stop the action you put in motion
pause 3000 `think and abandon all hope loop

main: gosub fwd
pause 30
goto main


interrupt:
`if pin3=1 then interrupt
gosub stopAll
pause 50 `think a second little machine :-)
gosub iSpy
setint %00001000, %00001000
return


` Look to see if a spot is clear, then head in that direction
iSpy:
gosub rev
pause 150
gosub stopAll
gosub leftSpin
pause 80
gosub stopAll
if pin3 = 1 then `still in trouble that way
gosub leftSpin ` call yourself until you`re out of trouble
pause 70
gosub stopAll
pause 150
if pin3 = 1 then `still in trouble that way
gosub rev
pause 100
gosub stopAll
gosub leftSpin ` call yourself until you`re out of trouble
pause 100
gosub stopAll
pause 100
return
endif
endif

return ` found a hole - start driving again


`-----------------------------------
` Drive Routines
`
fwd:
high fwdM1, fwdM2
pause 5
return

rev:
high revM1, revM2
pause 5
return

stopAll:
low fwdM1, fwdM2, revM1, revM2
pause 20
return

leftSpin:
high fwdM1
high revM2
pause 5
return

rightSpin:
high revM1
high fwdM2
pause 5
return

picAxe Development URLs     
Cheap, quick picAxe (US) supplier:
<a href="http://www.phanderson.com/picaxe/">PH Anderson</a>

The Original picAxe chip was created and developed here:
<a href="http://www.rev-ed.co.uk/picaxe/>Rev-Ed</a>

Object Detection using 38 kHz Pulsed Infrared - PICAXE-18X:
<a href="http://www.phanderson.com/picaxe/ir_1.html">picAxe and IR Tricks</a>

General picAxe apps:
<a href="">PH Anderson again!</a>

Use of a PICAXE-08M as an Accessory to a Basic Stamp, PICAXE-18 or Similar:
<a href="http://www.phanderson.com/picaxe/pwm_stamp.html">picAxe apps</a>

PICAXE Infra-Red Interfacing:
<a href="http://www.hippy.freeserve.co.uk/picaxeir.htm">Hippy - great source picAxe trips and learning</a>
become a creator
close window

It's Easy To:

C - What - I - Can - Do

• Sign up - Get ID and Password

• Plan and Create a Project That Someone Might Enjoy and May Even Want to Build

• Link to your creation on your favorite social networking site or blog.

• Become famous! Because your projects get a lot of Hits!

 

No parts list with this project. Scan the 'Junkbox Reviewer' below! Find projects by clicking on their parts. Got something in your junkbox? Here's your spot to find something fun to make or build!

 

Junk Box Reviewer
Itching To Start Building A DIY Do It Yourself Project? Got Some Parts of Your Own in your JunkBox? Find projects by Surfing' the Parts List!
  
  
  
  
  
 
Andrei And Jim
Web Developers
Visit the project:

CwhatIcanDo Website


 
  
  
 
L 298 Compact Motor Driver Kit
Solarbotics
Visit the project:

Build the L298 H-Bridge Motor Control


 
  
 
Account On CwhatIcanDo
CwhatIcanDo.com
Visit the project:

HELP :: How To Create a Project


 
  
  
 
Microrobot Avoider Jr
Microrobot
Visit the project:

Robot Man: With Robot Demos


 
  
  
  
 
Brilliant Blue/Green LED
Surplus
Visit the project:

Converting a Flashlight to LED


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Easy Cheap Robot Weekend Project


 
  
 
Tracked Vehicle Chassis Kit
Tamiya
Visit the project:

Build Your Own Track Drive Robot


 
  
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Build Your Own Track Drive Robot


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

Build Your Own Track Drive Robot


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Build a Robot In 5 Minutes


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

Build a Robot In 5 Minutes


 
  
 
Gear Motor 2 - 224:1 Offset Shaft
SolarBotics
Visit the project:

Build a Robot In 5 Minutes


 
  
 
4 X AA Cell battery holder plus on/off switch
Powerize
Visit the project:

Build a Robot In 5 Minutes


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

picAxe 8 bit Motor Controller: Look Inside


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

picAxe 8 bit Motor Controller: Look Inside


 
  
 
4 Section In-Ground Batting Net
battingnets.com
Visit the project:

Home Installation of a 4 Section In-Ground Batting Cage


 
  
  
  
  
  
  
  
 
Transformer 1k:8 ohm
xicon
Visit the project:

Pong)))))


 
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Robots Almost Anyone Can Afford


 
  
  
  
 
Morphibian Land Shark
Kid Galaxy
Visit the project:

Morphibian Land Shark


 
  
  
  
  
  
  
 
Parallax (Futaba) Continuous Rotation Servo
futaba (modified)
Visit the project:

How To Build a Robot in a Box


 
  
 
Parallax (Futaba) Standard Servo
futaba
Visit the project:

How To Build a Robot in a Box


 
  
  
  
 
PICAXE 8 Pin Motor Driver Board
SparkFun
Visit the project:

Weekend Project: Get Started With Robots


 
  
  
 
L298 Compact Motor Driver
Solarbotics
Visit the project:

Build a Respectable Autonomous Robot


 
  
 
Infrared Proximity Sensor Short Range - Sharp GP2D120XJ00F
Sharp
Visit the project:

Weekend Project: Get Started With Robots


 
  
  
 
PICAXE 18 Pin Power Project Board
picAxe
Visit the project:

Build a Robot From A Power Wheelchair


 
  
 
PICAXE 18M2 Microcontroller
picAxe
Visit the project:

Build a Robot From A Power Wheelchair


 
  
  
  
  
  
 
Solderless Breadboard For Uno
Jameco Valupro
Visit the project:

Arduino Development VS PicAxe Development


 
  
 
USB 2/0Video Capture Device
SIIG
Visit the project:

On Line Neighborhood Watch


 
  
  
  
 
Eurocard IC Pattern
Velleman
Visit the project:

On Line Neighborhood Watch


 
  
 
40 kHz Weatherproof Transducer
Audiowell Electronics
Visit the project:

Pong)))))


 
  
 
PICAXE 18M2 Microcontroller
picAxe
Visit the project:

Autonomous Robot PVC "Pickup Truck"


 
  
 
Power Amplifier
ST Micro
Visit the project:

Pong)))))


 
  
  

By Creators
WeRbots: i-Mon App
WeRbots: Pong)))))
By Keywords
Ajax: battle
Android: battle
BEAM Robots: battle
Convert Your Flashlight to LED: Converting a Flashlight to LED
How To Build Cheap Bots: Robots Almost Anyone Can Afford
How To Build Cheap Bots: How To Build a Robot in a Box
How To Website: Tour This Website
How To Website: CwhatIcanDo Website
Infrared Proximity Sensor: Build Your Own Track Drive Robot
Quick Build Robot: Build a Robot In 5 Minutes
robot bending: Morphibian Land Shark
Robot Motor Control: Robot Basics
Robot Motor Control: Buggy Bot: Wire Frame Bot Body
Robots: Robot Basics
Rumble Bot Conversions: Robots Almost Anyone Can Afford
Select or type in a Keyword: Converting a Flashlight to LED
web 2.0 site: CwhatIcanDo Website
Weekend Project Robots: Easy Cheap Robot Weekend Project

Click To Expand / Contract Menus. View by Creator, Category, Keywords or Number of Views.

©Copyright 2008 - , CwhatIcanDo.com, all rights reserved.